import { computed, ref } from 'vue'
import { defineStore } from 'pinia'

export const usefromToStore = defineStore('fromTo',() => {
  // const count = ref(0)
  // const doubleCount = computed(
  //   () => count.value * 2
  // )
  // function increment() {
  //   count.value++
  // }

  const fromTo = ref('语音预警')

  const getfrom = computed(() =>{
    return fromTo.value
  })
  
  const setFrom = (data) => {
    fromTo.value = data 
  }

  return { fromTo, getfrom, setFrom} 
 
})
